<!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style type="text/css"></style>
    <script src="./jquery-3.3.1.min.js"></script>
</head>
<body>
    <h1>JQ 其他</h1>
    <hr>

    <ul id="list">
        <li>七步诗----曹植</li>
        <li>煮豆燃豆萁，</li>
        <li>豆在釜中泣。</li>
        <li>本是同根生，</li>
        <li>相煎何太急？</li>
    </ul>

    <script>
        $('#list li').each(function(i, n){
            console.log(i, n, this, $(this).index());
        });

        console.log($('#list li').get(2));


    </script>
</body>
</html>